package catalina;

import server.HttpServlet;

import java.util.HashMap;
import java.util.Map;

public class Mapper {

    private Map<String, MappedHost> hostMap = new HashMap<>();

    public void addHost(String name, MappedHost host) {
        hostMap.put(name, host);
    }

    public Map<String, MappedHost> getHosts() {
        return hostMap;
    }

    public MappedHost getHost(String name) {
        return hostMap.get(name);
    }
}
